package vip.rssc.mybatisplus.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import vip.rssc.mybatisplus.entity.TestUser;
import vip.rssc.mybatisplus.mapper.MybatisPlusTestUserMapper;
import vip.rssc.mybatisplus.service.TestUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>Description: [SoUserPlusServiceImpl]</p >
 * Created on 2020年10月25日
 *
 * @author <a href="1014376159@qq.com">CJ</a>
 * @version 1.0
 * Copyright (c) 2020 cj
 */

@Service("mybatisPlusTestUserServiceImpl")
public class TestUserServiceImpl extends ServiceImpl<MybatisPlusTestUserMapper, TestUser> implements TestUserService {

    @Override
    public Page<TestUser> pageList(Long pageNo, Long pageSize) {
        Page<TestUser> page = new Page<>(pageNo, pageSize);
        List<TestUser> testUsers = baseMapper.pageList(page);
        page.setRecords(testUsers);
        return page;
    }

}
